package ee.ut.aa.neuraltic.neural;

import java.util.List;

public class Network {

	private InputLayer input;
	private OutputLayer output;

	private List<Layer> layers;

	private int value = 0;

	public InputLayer getInput() {
		return input;
	}

	public OutputLayer getOutput() {
		return output;
	}

	public List<Layer> getLayers() {
		return layers;
	}

	public void setLayers( List<Layer> layers ) {

		input = (InputLayer) layers.get( 0 );
		output = (OutputLayer) layers.get( layers.size() - 1 );

		this.layers = layers;
	}

	public int getValue() {
		return value;
	}

	public void setValue( int value ) {
		this.value = value;
	}

	@Override
	public String toString() {

		String result = "\n";

		for( Layer layer : layers ) {
			result += "[" + layer + "]\n";
		}
		return result;
	}
}
